<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.server.web.JsVersionUtil"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${projectName}</title>
<script type="text/javascript"
	src='<c:url value="/js/boot.js"></c:url>?v=<%=JsVersionUtil.CURRENT_VERSION%>'></script>
<link rel="stylesheet" type="text/css"
	href='<c:url value="/share/styles.css"></c:url>?v=<%=JsVersionUtil.CURRENT_VERSION%>' />
<style type="text/css">
body {
	height: 100%;
}

.fieldTitle {
	width: 100px !important;
}

.mini-tabs-leftButton, .mini-tabs-rightButton {
	display: none;
}

.mini-tabs-scrollCt {
	border-top: 0;
}

.mini-tabs-bodys {
	padding: 0;
}

.headerpan {
	margin-left: 10px;
	font-size: 14px;
	font-weight: bold;
}

#UserPhoto {
	background-image: url('<c:url value="/share/images/test.jpg"></c:url>');
	background-size: 150px 210px;
	width: 150px;
	height: 210px;
	vertical-align: middle;
	margin-left: auto;
	margin-right: auto;
}

#explain {
	color: red;
}
</style>
<script type="text/javascript">
	var typeData = [ {
		id : 0,
		text : "",
		note : ""
	}, {
		id : 1,
		text : "持续返费",
		note : "比如：每隔10天返100元，返费10次，则总共返费1000元。"
	}, {
		id : 2,
		text : "叠加返费",
		note : "比如：第1个10天返100元，第二个10天返200元，直到第10个10天返1000元，总返5500元。"
	}, {
		id : 3,
		text : "一次性返费",
		note : "比如：满10天返100元，总计返费就只有100元。"
	}, {
		id : 4,
		text : "按工作日返费",
		note : "比如：每满1天返100元，返费总次数10次，则总共返费1000元。"
	} ];
</script>
</head>
<body>
	<form id="dataForm">
		<div class="formContent">
			<input id="OrgNo" name="OrgNo" class="mini-hidden"
				style="width: 100%;" /> <input id="Nature" name="Nature"
				class="mini-hidden" style="width: 100%;" />
			<table class="formContentTable type1" id="type1">
				<tr>
					<th class="fieldTitle"></th>
					<th class="fieldContent"></th>
					<th class="fieldTitle"></th>
					<th class="fieldContent"></th>
				</tr>
				<tr>
					<td class="fieldTitle">公告主题</td>
					<td class="fieldContent" colspan="3"><input id="Title" name="Title"
						class="mini-textbox" style="width: 100%;" required="true" /></td>
				</tr>
				<tr>
					<td class="fieldTitle">称谓</td>
					<td class="fieldContent" colspan="3"><input id="Salutation" name="Salutation"
						class="mini-textbox" style="width: 100%;" required="true" /></td>
				</tr>
				<tr>
					<td class="fieldTitle">公告内容</td>
					<td class="fieldContent" colspan="3"><textarea id="Content"
							name="Content" style="width: 100%; height: 300px;" required="false"
							class="mini-textarea" emptyText="无"></textarea></td>
				</tr>
				<tr>
					<td class="fieldTitle">发告单位</td>
					<td class="fieldContent"><input id="Inscribe" name="Inscribe"
						class="mini-textbox" style="width: 100%;" required="true" /></td>
					<td class="fieldTitle">公告日期</td>
					<td class="fieldContent"><input id="NoticeTime" name="NoticeTime"
						class="mini-textbox" style="width: 100%;" required="true" /></td>
				</tr>
			</table>
		</div>
	</form>

	<script type="text/javascript">
		mini.parse();
		mini_debugger = false;

		var rootPath = parent.getRootPath();
		var userName = parent.getUserName();
		var action = parent.getAction();
		var id = parent.getId();
		var dataOri = null;


		if (parent.hideAtt) {
			parent.hideAtt();

		}

		var form = new mini.Form("dataForm");

		//SetFormData();

		function SetFormData() {
			if (action == "new") {
				var o = new Object();
				form.setData(o);
				dataOri = o;
				return;
			}
			var messageid = mini.loading("获取中...", "Loading");
			var urlBase = '<c:url value="/notice/form/"></c:url>' + id;
			$.ajax({
				url : urlBase,
				type : "get",
				dataType : 'json',
				success : function(text) {
					if (!text) {
						return;
					}
					var o = mini.decode(text);
					form.setData(o);
					dataOri = o;
					parent.labelModel(form);
				},
				complete : function(XMLHttpRequest, textStatus) {
					mini.hideMessageBox(messageid);
				},
				error : function(XMLHttpRequest, textStatus, errorThrown) {

				}
			});
		}
		function packData() {
			return form;
		}
	</script>
</body>
</html>